﻿using System;
using System.Globalization;
using System.Windows.Data;

namespace MyFloridaHouse.libSvCommonUtilities.Converters
{
    public class ConvertBoolToMercatorMode : IValueConverter
    {
        public object Convert(
            object value,
            Type targetType,
            object parameter,
            CultureInfo culture)
        {
            bool showRoadMap = (bool)value;
            return showRoadMap ? null : new Microsoft.Maps.MapControl.Core.MercatorMode() ;
        }

        public object ConvertBack(
            object value,
            Type targetType,
            object parameter,
            CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
    
}
